package com.xinyue.authorization.bean;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.util.Date;

@Entity
@Table(name="DZ_ACTION")
public class Action implements Serializable{
	private static final long serialVersionUID = 1L;
	
	//ID
	private int actionId;
	//属性
	private String actionName;
	private String actionSign;
	private int actionType;//动作类型1：组织动作/2：普通动作
	private String description;
	private int createrId;
	private String createrName;
	private Date createDate;
    
    /**getter setter*/
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(length = 6)
    public int getActionId() {
		return actionId;
	}
	public void setActionId(int actionId) {
		this.actionId = actionId;
	}
	public String getActionName() {
		return actionName;
	}
	public void setActionName(String actionName) {
		this.actionName = actionName;
	}
	@Column(unique = true)
	public String getActionSign() {
		return actionSign;
	}
	public void setActionSign(String actionSign) {
		this.actionSign = actionSign;
	}
	@Column(length = 1)
	public int getActionType() {
		return actionType;
	}
	public void setActionType(int actionType) {
		this.actionType = actionType;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getCreaterId() {
		return createrId;
	}
	public void setCreaterId(int createrId) {
		this.createrId = createrId;
	}
	public String getCreaterName() {
		return createrName;
	}
	public void setCreaterName(String createrName) {
		this.createrName = createrName;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
